@layout("/common/_container.html"){
<div class="layui-card">
<div class="layui-card-body">
<div class="layui-form form-board" lay-filter="layuiadmin-form-useradmin" id="layuiadmin-form-useradmin">
<input type="hidden" id="machineId" name="machineId" value="${item.machineId}">
<input type="hidden" id="accountId" name="accountId" value="${item.accountId}">
<div class="layui-form-item">
 	<div class="layui-inline">
     <label class="layui-form-label">用户名</label>
     <div class="layui-input-inline">
     	<div class="layui-form-mid" style="width: 500px;">${item.userName}</div>
     </div>
   </div>
   <div class="layui-inline">
     <label class="layui-form-label">差分账号</label>
     <div class="layui-input-inline">
       <div class="layui-form-mid" style="width: 500px;">${item.account}</div>
     </div>
   </div>
</div>
<div class="layui-form-item">
 	<div class="layui-inline">
     <label class="layui-form-label">所属机构</label>
     <div class="layui-input-inline">
     	<div class="layui-form-mid" style="width: 500px;">${item.organName}</div>
     </div>
   </div>
   <div class="layui-inline">
     <label class="layui-form-label">设备型号</label>
     <div class="layui-input-inline">
       <div class="layui-form-mid" style="width: 500px;">${item.machineModel}</div>
     </div>
   </div>
</div>
<div class="layui-form-item">
 	<div class="layui-inline">
     <label class="layui-form-label">申请时间</label>
     <div class="layui-input-inline">
     	<div class="layui-form-mid" style="width: 500px;">${item.createTimeForMachine}</div>
     </div>
   </div>
   <div class="layui-inline">
     <label class="layui-form-label">SN码</label>
     <div class="layui-input-inline">
       <div class="layui-form-mid" style="width: 500px;">${item.machineSn}</div>
     </div>
   </div>
</div>
<div class="layui-form-item">
 	<div class="layui-inline">
     <label class="layui-form-label">仪器检定证书</label>
     <div class="layui-input-inline">
     	<div class="layui-form-mid layui-text" style="width: 500px;"><a href="" target="_blank">${item.machineCert}</a></div>
     </div>
   </div>
</div>
<div class="layui-form-item">
   <div class="layui-inline">
     <label class="layui-form-label">申请操作</label>
     <div class="layui-input-inline">
       <input type="radio" name="applyState" value="1" title="通过" lay-filter="applyState" checked>
       <input type="radio" name="applyState" value="2" title="驳回" lay-filter="applyState">
     </div>
   </div>
</div>
<div class="layui-form-item" style="display: none" id="reject-reson">
 	<div class="layui-inline">
     <label class="layui-form-label">驳回理由</label>
     <div class="layui-input-inline" style="width: 500px;">
     	<textarea name="rejectReson" id="rejectReson" placeholder="请输入驳回理由" class="layui-textarea"></textarea>
     </div>
   </div>
</div>

<div class="layui-form-item layui-hide">
  <input type="button" lay-submit lay-filter="review-submit" id="review-submit" value="确认">
</div>
</div>
</div>
</div>


<script>
  layui.config({
	 base: Feng.ctxPath + '/static/layuiadmin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', 'form','laydate'], function(){
    var $ = layui.$
    ,form = layui.form
    ,laydate = layui.laydate;
    
    form.on('radio(applyState)', function(data){
    	if(data.value == 1){
    		$("#reject-reson").hide();
    		$("#rejectReson").removeAttr("lay-verify"); 
    	}else{
    		$("#reject-reson").show();
    		$("#rejectReson").attr("lay-verify","required");
    	}
   	});
  })
  </script>
@}

